package com.webside.points.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.points.mapper.ExpertProtocolMapper;
import com.webside.points.model.ExpertProtocolEntity;
import com.webside.points.service.ExpertProtocolService;
@Service
public class ExpertProtocolServiceImpl implements ExpertProtocolService{

	@Autowired
	ExpertProtocolMapper expertProtocolMapper;
	
	@Override
	public int insert(ExpertProtocolEntity protocolEntity) {
		return expertProtocolMapper.insert(protocolEntity);
	}

	@Override
	public int update(ExpertProtocolEntity protocolEntity) {
		return expertProtocolMapper.update(protocolEntity);
	}

	@Override
	public ExpertProtocolEntity findById(int id) {
		return expertProtocolMapper.findById(id);
	}

	@Override
	public List<ExpertProtocolEntity> findAll() {
		return expertProtocolMapper.findAll();
	}

}
